Skip to content

Conversation

@LStan
Copy link

@LStan LStan commented Dec 23, 2025

Problem

The enum variant UnwrapLamports = 45 is not present in the try_from function for the TokenInstruction of the p-interface.

Solution

Add 45 to the match branch. Also, add p-interface tests to CI to catch such errors in the future.

Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Since #118 is already fixing the try_from implementation, could you please update this PR to only add tests for the p-interface? We can follow the same pattern as interface:test:

  • have a script for it on package.json
  • run the "new" p-interface:test the format_and_lint_ptoken step in CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants